package cn.fintecher.pangolin.common.utils;

import org.joda.time.DateTime;

import java.util.Date;

/**
 * @Auther: xiaqun
 * @Description: 批次号工具类
 * @Date: 11:15 2019/8/27
 */

public final class BatchNumberUtil {
    /**
     * 生成批次号
     */
    public static String getBatchNumber(String seq) {
        DateTime dateTime = new DateTime(new Date());
        String str = dateTime.toString("yyyy-MM-dd").replaceAll("-", "");
        return str + "-" + seq;
    }
}
